//服务器远程执行，为每个客户端，AI单位添加执行本地效果
if(!hasInterface) exitWith{};

//特定载具内ai不添加，比如无人机机枪
//if((typeof _this) find "_UAV_AI_" >= 0)exitWith{};


if(Param_Killfeed > 1) then
{
	_this call Headshot;
};

//通过远程执行的player是无效的


if(Param_Blood == 1)then{
	//后背血液效果
	_this call GF_Set_Blood_Shot;
	
	//伤口射血效果
	_this call GF_Set_Blood_Particle_Bleeding;
	

	//hitPart只在射击者本地执行
	_this addEventHandler ["HitPart", {
		private _unit = (_this select 0) select 0;
		private _player = (_this select 0) select 1;
		
		//子弹击中肉体音效  
		//和玩家过远
		if(_unit distanceSqr _player > 100)exitWith{};
		
		private _veh = "#particlesource" createVehicleLocal ASLToAGL getPosWorld _unit;
		_veh say3D (selectRandom ast_hit);
	}];
};
		

//移除所有荧光单
_this removeMagazines "Chemlight_blue";
_this removeMagazines "Chemlight_red";
_this removeMagazines "Chemlight_green";
_this removeMagazines "Chemlight_yellow";